package com.jzr.medical.db1.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.jzr.medical.common.LayEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 系统定时任务
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TSysJob对象", description="系统定时任务")
public class TSysJob extends LayEntity<Integer> {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_sys_job";
    public static final String Id_ = "id";
    public static final String JobName_ = "job_name";
    public static final String JobClass_ = "job_class";
    public static final String Cron_ = "cron";
    public static final String StartDate_ = "start_date";
    public static final String StopDate_ = "stop_date";
    public static final String LastSuccessDate_ = "last_success_date";
    public static final String IsRun_ = "is_run";
    public static final String IsDone_ = "is_done";
    public static final String IsCancelled_ = "is_cancelled";
    public static final String IsStartPlan_ = "is_start_plan";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";
    public static final String HasError_ = "has_error";
    public static final String IsDel_ = "is_del";


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "任务名称")
    @TableField("job_name")
    private String jobName;

    @ApiModelProperty(value = "任务类名")
    @TableField("job_class")
    private String jobClass;

    @ApiModelProperty(value = "定时代码")
    @TableField("cron")
    private String cron;

    @ApiModelProperty(value = "启动时间")
    @TableField("start_date")
    private LocalDateTime startDate;

    @ApiModelProperty(value = "停止时间")
    @TableField("stop_date")
    private LocalDateTime stopDate;

    @ApiModelProperty(value = "最后一次成功时间")
    @TableField("last_success_date")
    private LocalDateTime lastSuccessDate;

    @ApiModelProperty(value = "是否正在运行")
    @TableField("is_run")
    private Boolean isRun;

    @ApiModelProperty(value = "是否执行完")
    @TableField("is_done")
    private Boolean isDone;

    @ApiModelProperty(value = "是否已被取消")
    @TableField("is_cancelled")
    private Boolean isCancelled;

    @ApiModelProperty(value = "是否已经启动计划")
    @TableField("is_start_plan")
    private Boolean isStartPlan;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "有错")
    @TableField("has_error")
    private Boolean hasError;

    @ApiModelProperty(value = "删除标记")
    @TableField("is_del")
    private Boolean isDel;


}
